
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGBillboard.h>
#include <OpenSG/OSGBillboardBase.h>
#include <OpenSG/OSGDrawAction.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_Billboard_dump_overloads_0_2, dump, 0, 2)


}// namespace


// Module ======================================================================
void Export_src_pyste_gen_Billboard()
{
    scope* osg_BillboardBase_scope = new scope(
    class_< osg::BillboardBase, bases< osg::Group > , boost::noncopyable >("BillboardBase", no_init)
//        .def_readonly("AxisOfRotationFieldMask", &osg::BillboardBase::AxisOfRotationFieldMask)
//        .def_readonly("FocusOnCameraFieldMask", &osg::BillboardBase::FocusOnCameraFieldMask)
//        .def_readonly("AlignToScreenFieldMask", &osg::BillboardBase::AlignToScreenFieldMask)
//        .def_readonly("MinAngleFieldMask", &osg::BillboardBase::MinAngleFieldMask)
//        .def_readonly("MaxAngleFieldMask", &osg::BillboardBase::MaxAngleFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::BillboardBase::MTInfluenceMask)
        .def("getClassType", &osg::BillboardBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::BillboardBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::BillboardBase::*)() )&osg::BillboardBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::BillboardBase::*)() const)&osg::BillboardBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::BillboardBase::getContainerSize)
        //.def("getAxisOfRotation", (osg::Vec3f& (osg::BillboardBase::*)() )&osg::BillboardBase::getAxisOfRotation, return_value_policy< copy_const_reference >())
        .def("getAxisOfRotation", (const osg::Vec3f& (osg::BillboardBase::*)() const)&osg::BillboardBase::getAxisOfRotation, return_value_policy< copy_const_reference >())
        //.def("getFocusOnCamera", (bool& (osg::BillboardBase::*)() )&osg::BillboardBase::getFocusOnCamera, return_value_policy< copy_const_reference >())
        .def("getFocusOnCamera", (const bool& (osg::BillboardBase::*)() const)&osg::BillboardBase::getFocusOnCamera, return_value_policy< copy_const_reference >())
        //.def("getAlignToScreen", (bool& (osg::BillboardBase::*)() )&osg::BillboardBase::getAlignToScreen, return_value_policy< copy_const_reference >())
        .def("getAlignToScreen", (const bool& (osg::BillboardBase::*)() const)&osg::BillboardBase::getAlignToScreen, return_value_policy< copy_const_reference >())
        //.def("getMinAngle", (osg::Real32& (osg::BillboardBase::*)() )&osg::BillboardBase::getMinAngle, return_value_policy< copy_const_reference >())
        .def("getMinAngle", (const osg::Real32& (osg::BillboardBase::*)() const)&osg::BillboardBase::getMinAngle, return_value_policy< copy_const_reference >())
        //.def("getMaxAngle", (osg::Real32& (osg::BillboardBase::*)() )&osg::BillboardBase::getMaxAngle, return_value_policy< copy_const_reference >())
        .def("getMaxAngle", (const osg::Real32& (osg::BillboardBase::*)() const)&osg::BillboardBase::getMaxAngle, return_value_policy< copy_const_reference >())
        .def("setAxisOfRotation", &osg::BillboardBase::setAxisOfRotation)
        .def("setFocusOnCamera", &osg::BillboardBase::setFocusOnCamera)
        .def("setAlignToScreen", &osg::BillboardBase::setAlignToScreen)
        .def("setMinAngle", &osg::BillboardBase::setMinAngle)
        .def("setMaxAngle", &osg::BillboardBase::setMaxAngle)
        .def("getBinSize", &osg::BillboardBase::getBinSize)
        .def("copyToBin", &osg::BillboardBase::copyToBin)
        .def("copyFromBin", &osg::BillboardBase::copyFromBin)
        .def("create", &osg::BillboardBase::create)
        .def("createEmpty", &osg::BillboardBase::createEmpty)
        .def("shallowCopy", &osg::BillboardBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("AlignToScreenFieldId") = (int)osg::BillboardBase::AlignToScreenFieldId;
    scope().attr("NextFieldId") = (int)osg::BillboardBase::NextFieldId;
    scope().attr("AxisOfRotationFieldId") = (int)osg::BillboardBase::AxisOfRotationFieldId;
    scope().attr("MaxAngleFieldId") = (int)osg::BillboardBase::MaxAngleFieldId;
    scope().attr("FocusOnCameraFieldId") = (int)osg::BillboardBase::FocusOnCameraFieldId;
    scope().attr("MinAngleFieldId") = (int)osg::BillboardBase::MinAngleFieldId;

    delete osg_BillboardBase_scope;

    class_< osg::Billboard, bases< osg::BillboardBase > , boost::noncopyable, osg::BillboardRefPtr >("Billboard", no_init)
        .def("changed", &osg::Billboard::changed)
        .def("calcMatrix", &osg::Billboard::calcMatrix)
        .def("dump", &osg::Billboard::dump, osg_Billboard_dump_overloads_0_2())
    ;


    register_ptr_to_python<osg::BillboardPtr>();
    implicitly_convertible<osg::BillboardRefPtr, osg::BillboardPtr>();
    implicitly_convertible<osg::BillboardPtr, osg::GroupPtr>();

    def("RefPtr", &pyopensg::ToRefPtr<osg::BillboardPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::BillboardPtr>);
}

